// 登录接口需要携带参数类型
export interface loginForm {
  username: string
  password: string
}

export interface responseData {
  code: number
  message: string
  ok: boolean
}

export interface loginResponseData extends responseData {
  data: string
}

export interface userInfoResponseData extends responseData {
  data: {
    routes: string[]
    buttons: string[]
    roles: string[]
    name: string
    avatar: string
  }
}

interface userInfo {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[] // 数组内放字符串
  buttons: string[]
  routes: string[]
  token: string
}
